﻿package org.lq.shopping.entity;

import java.io.Serializable;

/**
 *  菜单实体类 
 * @author dj
 *
 */
public class Menu implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int menu_id;//菜单id
	private String menu_name;//菜单名称
	private String   menu_describe ;//菜单描述
	private String menu_address;//资源地址
	private String  menu_parentid ;// 菜单父级 id
	private String   menu_type;//菜单类型 
	public int getMenu_id() {
		return menu_id;
	}
	public void setMenu_id(int menu_id) {
		this.menu_id = menu_id;
	}
	public String getMenu_name() {
		return menu_name;
	}
	public void setMenu_name(String menu_name) {
		this.menu_name = menu_name;
	}
	public String getMenu_describe() {
		return menu_describe;
	}
	public void setMenu_describe(String menu_describe) {
		this.menu_describe = menu_describe;
	}
	public String getMenu_address() {
		return menu_address;
	}
	public void setMenu_address(String menu_address) {
		this.menu_address = menu_address;
	}
	public String getMenu_parentid() {
		return menu_parentid;
	}
	public void setMenu_parentid(String menu_parentid) {
		this.menu_parentid = menu_parentid;
	}
	public String getMenu_type() {
		return menu_type;
	}
	public void setMenu_type(String menu_type) {
		this.menu_type = menu_type;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((menu_address == null) ? 0 : menu_address.hashCode());
		result = prime * result + ((menu_describe == null) ? 0 : menu_describe.hashCode());
		result = prime * result + menu_id;
		result = prime * result + ((menu_name == null) ? 0 : menu_name.hashCode());
		result = prime * result + ((menu_parentid == null) ? 0 : menu_parentid.hashCode());
		result = prime * result + ((menu_type == null) ? 0 : menu_type.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Menu other = (Menu) obj;
		if (menu_address == null) {
			if (other.menu_address != null)
				return false;
		} else if (!menu_address.equals(other.menu_address))
			return false;
		if (menu_describe == null) {
			if (other.menu_describe != null)
				return false;
		} else if (!menu_describe.equals(other.menu_describe))
			return false;
		if (menu_id != other.menu_id)
			return false;
		if (menu_name == null) {
			if (other.menu_name != null)
				return false;
		} else if (!menu_name.equals(other.menu_name))
			return false;
		if (menu_parentid == null) {
			if (other.menu_parentid != null)
				return false;
		} else if (!menu_parentid.equals(other.menu_parentid))
			return false;
		if (menu_type == null) {
			if (other.menu_type != null)
				return false;
		} else if (!menu_type.equals(other.menu_type))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Menu [menu_id=" + menu_id + ", menu_name=" + menu_name + ", menu_describe=" + menu_describe
				+ ", menu_address=" + menu_address + ", menu_parentid=" + menu_parentid + ", menu_type=" + menu_type
				+ "]";
	}
	
	
}
